//proxy 代理
const { createProxyMiddleware } = require('http-proxy-middleware');
module.exports = function (app) {
    app.use(
        createProxyMiddleware('/rest', {
            target: 'http://localhost:5000',
            secure: false,
            changeOrigin: true,
            // pathRewrite: {
            //   '^/api': '',
            // },
        })
    );
};
